import { defineStore } from "pinia";

interface IState {
    popClocked: boolean;
    days: Array<any>;
}

export const useClocked = defineStore("clocked", {
    state: (): IState => ({
        popClocked: false,
        days: [
            {
                num: 100,
                done: true
            },
            {
                num: 200,
                done: false
            },
            {
                num: 300,
                done: false
            },
            {
                num: 400,
                done: false
            },
            {
                num: 500,
                done: false
            },
            {
                num: 600,
                done: false
            },
            {
                num: 700,
                done: false
            }
        ]
    }),

    getters: {},
    actions: {
        changePopClocked(val: any) {
            this.popClocked = val;
        },
        changeDays(val: any) {
            this.days = val;
        }
    }
});
